﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using System.Data;
using System.Data.SqlClient;

namespace DAO
{
    public partial class ChucVu_DAO
    {
        public DataTable LoadDanhSachChucVu()
        {
            DataProvider dp = new DataProvider();
            DataTable dt = new DataTable();
            dt = dp.ExecuteQuery("LoadDanhSachChucVu");
            return dt;
        }

        public bool ThemMoiChucVu(string TenChucVu)
        {
            DataProvider dp = new DataProvider();
            SqlParameter[] Parameter = new SqlParameter[1];
            Parameter[0] = new SqlParameter("@TenChucVu", TenChucVu);
            return dp.ExecutenonQuery("ThemMoiChucVu", Parameter);
        }
    }
}
